package com.examples.controller;

import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.HashMap;
import java.util.Map;
@Controller
public class HelloController {

    @RequestMapping("/flow")
    public String flow(){
        return "flow";
    }

    @RequestMapping("/index")
    public String index(){
        return "index";
    }

    @RequestMapping("/index2")
    public JSONObject index2(){

        JSONObject jsonObject = new JSONObject();
        jsonObject.put("name","aa");
        return jsonObject;
    }
}